Skip to content

Conversation

@IvanSerpa
Copy link
Contributor

@IvanSerpa IvanSerpa commented Jan 8, 2019

Fix #14(Worker Push Notifications)


The problem

Some tasks that require a long execution time were blocking pika's ioloop which stop heartbeats to reach RabbitMQ. When RabbitMQ doesn't recive a heartbeat for a long time it considers the worker dead and resend the message, which create some duplicates because the worker did not die.

The solution

Runs the worker in a different thread so it can take as long as necessary while keeping his heart beating.


Obs.: Using this PR also requires to update Pika to 0.12.0

@hugofcampos hugofcampos merged commit 6e12818 into master Feb 6, 2019
@hugofcampos hugofcampos deleted the feature/run-work-in-different-thread branch February 6, 2019 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants